#ifndef _MEMENTO_H_
#define _MEMENTO_H_

#include <string>
#include <iostream>
using std::string;
using std::cout;
using std::endl;

class Memento
{
public:
    explicit Memento(const string& state)
        : _state(state)
    {
        cout << "Memento(" << state << ")" << endl;
    }

    string GetState() const {
        return _state;
    }

private:
    string _state;
};

#endif // _MEMENTO_H_